

package com.platform.security.exception;

import org.springframework.http.HttpStatus;
import org.springframework.security.core.AuthenticationException;

/**
 *
 */
public abstract class Authentication2Exception extends AuthenticationException {

    public Authentication2Exception(String msg) {
        super(msg);
    }

    public int getHttpErrorCode() {
        // 400 not 401
        return HttpStatus.BAD_REQUEST.value();
    }

    public abstract String getOAuth2ErrorCode();
}
